Most people in the survey quite favor poor people, evident by the high mean and median of the data. The minium favorability for this variable is 0.00 and the maxiumum response is 100.00. The box plot shows there was a wide range of data but mostly the favorability stayed high.
Welfareppl:
>summary(nes$welfareppl)
Min
1st Qu
Median
Mean
3rd Qu
Max
NA's
0.00
40.00
50.00
56.73
70.00
100.00
276
Most people from the survey neither extremely favor nor dislike those with welfare yet the mean is slightly on the more favorable side. The minimum favorability response is 0.00 and the maximum is 100.00. The boxplot shows that there was a wide range of favorability for this variable and is mainly stayed equally disliked and liked by survey takers.
Workclass:
>summary(nes$workclass)
Min
1st Qu
Median
Mean
3rd Qu
Max
NA's
1.00
70.00
85.00
83.97
100.00
100.00
236
The working class gets the most attention from the survey out of the three variables I chose to analyze. The median and mean are both extremely high showing that most people who took the survey favored those receiving welfare. (But this doesn't refer to people on welfare, it refers to "working class"--and you could compare attitudes from your previous analysis to this one to see that, in fact, people DO NOT see "the working class" in the same way they see "people on welfare.") This variable also had the least NA's out of the three, meaning that people taking the survey tended to want to show their feelings about this variable. The minimum favorability response is 1.00 meaning that this variable out of the three I examined did not have a response of 0.00 in which it was absolutely disliked by a survey taker. The maximum was also 100.00. This boxplot shows there a lack of wide range and most of the favorability data staying very high. The lack of data toward the bottom of the plot shows that it was very well favored.
This scatterplot compares the range of data from two variables: welfareppl and poorppl. It shows that the two feeling thermometers share a positive correlation and are related in that most of the data from the two are in the middle and upper right side of the plot. Feelings toward the poor and those with welfare share this common link.
>cor(nes$poorppl,nes$welfareppl,use="complete.obs")
[1] 0.4452829
The correlation between poorppl and welfareppl is about 0.45, meaning that there is a relation, but of medium strength, between the favorability of those who are poor and those who are receiving welfare, according to those who chose to voice their opinions in the survey.
Variable Findings
Poorppl:
>summary(nes$poorppl)
Most people in the survey quite favor poor people, evident by the high mean and median of the data. The minium favorability for this variable is 0.00 and the maxiumum response is 100.00. The box plot shows there was a wide range of data but mostly the favorability stayed high.
Welfareppl:
>summary(nes$welfareppl)
Most people from the survey neither extremely favor nor dislike those with welfare yet the mean is slightly on the more favorable side. The minimum favorability response is 0.00 and the maximum is 100.00. The boxplot shows that there was a wide range of favorability for this variable and is mainly stayed equally disliked and liked by survey takers.
Workclass:
>summary(nes$workclass)
The working class gets the most attention from the survey out of the three variables I chose to analyze. The median and mean are both extremely high showing that most people who took the survey favored those receiving welfare. (But this doesn't refer to people on welfare, it refers to "working class"--and you could compare attitudes from your previous analysis to this one to see that, in fact, people DO NOT see "the working class" in the same way they see "people on welfare.") This variable also had the least NA's out of the three, meaning that people taking the survey tended to want to show their feelings about this variable. The minimum favorability response is 1.00 meaning that this variable out of the three I examined did not have a response of 0.00 in which it was absolutely disliked by a survey taker. The maximum was also 100.00. This boxplot shows there a lack of wide range and most of the favorability data staying very high. The lack of data toward the bottom of the plot shows that it was very well favored.
This scatterplot compares the range of data from two variables: welfareppl and poorppl. It shows that the two feeling thermometers share a positive correlation and are related in that most of the data from the two are in the middle and upper right side of the plot. Feelings toward the poor and those with welfare share this common link.
>cor(nes$poorppl,nes$welfareppl,use="complete.obs")
[1] 0.4452829
The correlation between poorppl and welfareppl is about 0.45, meaning that there is a relation, but of medium strength, between the favorability of those who are poor and those who are receiving welfare, according to those who chose to voice their opinions in the survey.
Great job.
My R Script:
1 nes<-read.csv("anes2008.csv")
2 summary(nes$workclass)
3 summary(nes$poorppl)
4 summary(nes$welfareppl)
5 boxplot(nes$workclass)
6 boxplot(nes$poorppl)
7 boxplot(nes$welfareppl)
8 cor(nes$poorppl,nes$welfareppl,use="complete.obs")
9 install.packages("car")
10 library(car)
11 scatterplot(nes$poorppl,nes$welfareppl)
12 hist(nes$poorppl)
13 hist(nes$welfareppl)
14 hist(nes$workclass)
Great job.